package com.itheima;

import java.time.LocalDate;
import java.time.LocalDateTime;

public class Test05 {
    public static void main(String[] args) {
        int year = 2021;
        LocalDate ld = LocalDate.of(year, 3, 1);
        LocalDate newlocalDate = ld.plusDays(-1);
        int day = newlocalDate.getDayOfMonth();
        System.out.println(day);
        System.out.println(day == 29 ? "闰年" : "平年");
    }
}
